package com.paziy.jan.graphics;

import com.paziy.jan.graphics.figures.Circle;
import com.paziy.jan.graphics.figures.Ellipse;
import com.paziy.jan.graphics.figures.Point;
import com.paziy.jan.graphics.figures.Rectangle;


public class Main {
    public static void main(String[] args) {
        Background bg = new Background(new Color("green"), "vafl");

        Movable[] movables = {new Circle(1, 2, 3, new Color("Yellow")), new Rectangle(5, 6, 2, 2, new Color("Brawn")),
                              new Point(-3, -5, new Color("White")), new Ellipse(9, 0, 6, -7), new MyWindow()};

        bg.draw();

        for(Movable m: movables) {
            Graph.swapXY(m);
        }
    }
}
